<? if (isset($this->users)): ?>
    <table border="1">
        <tr>
            <th>
                ID:
            </th>
            <th>
                Display Name:
            </th>
            <th>
                Email:
            </th>
            <th>
                Date:
            </th>
            <th>
                Mod:
            </th>
        </tr>
        <? foreach ($this->users as $user) :?>
        <tr>
            <td>
                <?= $user->user_id; ?>
            </td>
            <td>
                <a href="<?= $this->url(array(
                    'controller'    => 'users',
                    'action'        => 'view',
                    'id'            => $user->user_id
                    ))?>"> <?= $user->user_name; ?> <?= $user->user_surname;?> </a>
            </td>
            <td>
                <?= $user->user_email; ?>
            </td>
            <td>
                <?= $user->user_birthday; ?>
            </td>
            <td>
                <a href="<?= $this->url(array(
                    'controller'    => 'users',
                    'action'        => 'edit',
                    'id'            => $user->user_id
                    ))?>"> Edit </a>
                |
                <a href="<?= $this->url(array(
                    'controller'    => 'users',
                    'action'        => 'delete',
                    'id'            => $user->user_id
                    ))?>"> Delete </a>
            </td>
        </tr>
        <? endforeach;?>
    </table>
<? else: ?>
<p> Пользователей пока нет </p>
<? endif; ?>